import pandas as pd
import calendar
from datetime import datetime

def generate_dates(year, month):
    number_days = calendar.monthrange(year, month)[1]

    date_list = pd.date_range(
        start=f'{year}/{month}/01',
        end=f'{year}/{month}/{number_days}'
    )

    datetime_list = [date.strftime('%Y-%m-%d') for date in date_list]

    print(datetime_list)
    return datetime_list


def get_days_to_week_day(given_date):
    weekday = given_date.weekday()

    days_until_saturday = (5 - weekday) % 7
    days_until_sunday = (6 - weekday) % 7

    return days_until_saturday, days_until_sunday


def get_days_of_month(year, month):
    return calendar.monthrange(year, month)[1]